package com.smartstate.iot.entity;


import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import com.smartstate.iot.util.ExcelExport;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("topic_log")
public class TopicLog implements Serializable {


    /**
     * 主键ID
     */
    @TableId(type = IdType.INPUT)
    @TableField(value = "id",fill = FieldFill.INSERT)
//    @ExcelExport(value = "id")
    private Integer id;


    /**
     * 设备类型
     */
    @ExcelExport(value = "设备类型")
    @ExcelProperty("设备类型")
    private String type;

    /**
     * 名称
     */
    @ExcelExport(value = "名称")
    @ExcelProperty("名称")
    private String logName;

    /**
     * 时间
     */
    @ExcelExport(value = "时间")
    @ExcelProperty("时间")
    private String date;

    /**
     * 描述
     */
    @ExcelExport(value = "描述")
    @ExcelProperty("描述")
    private String detail;


    /**
     * 设备ID
     */
    @ExcelExport(value = "设备ID")
    @TableField(value = "deviceId")
    @ExcelProperty("设备ID")
    private String deviceId;

}
